package com.derive.education_service.web.user.service;

import com.derive.education_service.common.global.Paper;
import com.derive.education_service.common.global.ResponseMessage;
import com.derive.education_service.entity.User;
import com.derive.education_service.web.user.bean.dto.QueryParam;
import com.derive.education_service.web.user.bean.dto.UserAddDto;
import com.derive.education_service.web.user.bean.dto.UserUpDto;
import org.springframework.stereotype.Component;

/**
 * 微信用户
 */
@Component
public interface UserService {
    // 客户注册
    boolean addUserInfo(UserAddDto userAddDto);

    // 查看客户详细信息 -- 根据openId
    ResponseMessage getUserInfoByOpenId(String openId);

    // 更新客户基本信息
    boolean upUserInfoById(UserUpDto userUpDto);

    // 删除客户信息 --IsState设为true 关联信息
    boolean delUserById(Integer userId);

    // 检索客户列表信息 -- 分页查询
    Paper<User> getUserList(QueryParam queryParam);

    // 更改用户标签
    ResponseMessage setUserTagById(int userId, int userTag);
}
